<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1-20130512"/>
<title>3D Cell: Vector3 Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">3D Cell
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1-20130512 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_vector3-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Vector3 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a> class.  
 <a href="class_vector3.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="common_8h_source.html">common.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0f49191f7e001e7f7ae1cb49522118b4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a0f49191f7e001e7f7ae1cb49522118b4">Vector3</a> ()</td></tr>
<tr class="memdesc:a0f49191f7e001e7f7ae1cb49522118b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">A constructor.  <a href="#a0f49191f7e001e7f7ae1cb49522118b4">More...</a><br/></td></tr>
<tr class="separator:a0f49191f7e001e7f7ae1cb49522118b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61caf3c2269cee584e55c84a6ec0a475"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a61caf3c2269cee584e55c84a6ec0a475">Vector3</a> (double a, double b, double c)</td></tr>
<tr class="memdesc:a61caf3c2269cee584e55c84a6ec0a475"><td class="mdescLeft">&#160;</td><td class="mdescRight">A constructor.  <a href="#a61caf3c2269cee584e55c84a6ec0a475">More...</a><br/></td></tr>
<tr class="separator:a61caf3c2269cee584e55c84a6ec0a475"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5160793db4ed4c3ba3becc89f5af3bee"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a5160793db4ed4c3ba3becc89f5af3bee">Set</a> (double a, double b, double c)</td></tr>
<tr class="memdesc:a5160793db4ed4c3ba3becc89f5af3bee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set values.  <a href="#a5160793db4ed4c3ba3becc89f5af3bee">More...</a><br/></td></tr>
<tr class="separator:a5160793db4ed4c3ba3becc89f5af3bee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af14c1570f3ac79f1ab8f09cc3200b51b"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#af14c1570f3ac79f1ab8f09cc3200b51b">Lenght</a> ()</td></tr>
<tr class="memdesc:af14c1570f3ac79f1ab8f09cc3200b51b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the lenght of a vector.  <a href="#af14c1570f3ac79f1ab8f09cc3200b51b">More...</a><br/></td></tr>
<tr class="separator:af14c1570f3ac79f1ab8f09cc3200b51b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c94cc16049543fc8edaba52c2b266b7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a9c94cc16049543fc8edaba52c2b266b7">Normalize</a> ()</td></tr>
<tr class="memdesc:a9c94cc16049543fc8edaba52c2b266b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalize a vector.  <a href="#a9c94cc16049543fc8edaba52c2b266b7">More...</a><br/></td></tr>
<tr class="separator:a9c94cc16049543fc8edaba52c2b266b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72a36c71164f1532d24ec49c3d7056fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector3.html">Vector3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a72a36c71164f1532d24ec49c3d7056fc">operator-</a> () const </td></tr>
<tr class="memdesc:a72a36c71164f1532d24ec49c3d7056fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get -v;.  <a href="#a72a36c71164f1532d24ec49c3d7056fc">More...</a><br/></td></tr>
<tr class="separator:a72a36c71164f1532d24ec49c3d7056fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a60aa84ebc037dec9faba617f8ddb231d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a60aa84ebc037dec9faba617f8ddb231d">x</a></td></tr>
<tr class="memdesc:a60aa84ebc037dec9faba617f8ddb231d"><td class="mdescLeft">&#160;</td><td class="mdescRight">x coordinate value.  <a href="#a60aa84ebc037dec9faba617f8ddb231d">More...</a><br/></td></tr>
<tr class="separator:a60aa84ebc037dec9faba617f8ddb231d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4965693beffdb6069e0618222cae459"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#ae4965693beffdb6069e0618222cae459">y</a></td></tr>
<tr class="memdesc:ae4965693beffdb6069e0618222cae459"><td class="mdescLeft">&#160;</td><td class="mdescRight">y coordinate value.  <a href="#ae4965693beffdb6069e0618222cae459">More...</a><br/></td></tr>
<tr class="separator:ae4965693beffdb6069e0618222cae459"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5f4108b2839a110eeaec8606780eaff"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#aa5f4108b2839a110eeaec8606780eaff">z</a></td></tr>
<tr class="memdesc:aa5f4108b2839a110eeaec8606780eaff"><td class="mdescLeft">&#160;</td><td class="mdescRight">z coordinate value.  <a href="#aa5f4108b2839a110eeaec8606780eaff">More...</a><br/></td></tr>
<tr class="separator:aa5f4108b2839a110eeaec8606780eaff"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ab7e44563aab6a2c1231aee03ca792b9a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector3.html">Vector3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#ab7e44563aab6a2c1231aee03ca792b9a">operator+</a> (const <a class="el" href="class_vector3.html">Vector3</a> &amp;v1, const <a class="el" href="class_vector3.html">Vector3</a> &amp;v2)</td></tr>
<tr class="memdesc:ab7e44563aab6a2c1231aee03ca792b9a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get v1+v2.  <a href="#ab7e44563aab6a2c1231aee03ca792b9a">More...</a><br/></td></tr>
<tr class="separator:ab7e44563aab6a2c1231aee03ca792b9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6a71d8f6c8d21c22d4025faa286d396"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector3.html">Vector3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#af6a71d8f6c8d21c22d4025faa286d396">operator-</a> (const <a class="el" href="class_vector3.html">Vector3</a> &amp;v1, const <a class="el" href="class_vector3.html">Vector3</a> &amp;v2)</td></tr>
<tr class="memdesc:af6a71d8f6c8d21c22d4025faa286d396"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get v1-v2.  <a href="#af6a71d8f6c8d21c22d4025faa286d396">More...</a><br/></td></tr>
<tr class="separator:af6a71d8f6c8d21c22d4025faa286d396"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8eb7b80968ff52ad83d1010fc717fd50"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector3.html">Vector3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a8eb7b80968ff52ad83d1010fc717fd50">operator*</a> (const <a class="el" href="class_vector3.html">Vector3</a> &amp;v1, const <a class="el" href="class_vector3.html">Vector3</a> &amp;v2)</td></tr>
<tr class="memdesc:a8eb7b80968ff52ad83d1010fc717fd50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get v1*v2.  <a href="#a8eb7b80968ff52ad83d1010fc717fd50">More...</a><br/></td></tr>
<tr class="separator:a8eb7b80968ff52ad83d1010fc717fd50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab27ca5627cbe91c355b16a323e6ef1ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector3.html">Vector3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#ab27ca5627cbe91c355b16a323e6ef1ca">operator*</a> (const <a class="el" href="class_vector3.html">Vector3</a> &amp;v1, const float t)</td></tr>
<tr class="memdesc:ab27ca5627cbe91c355b16a323e6ef1ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get v1*t.  <a href="#ab27ca5627cbe91c355b16a323e6ef1ca">More...</a><br/></td></tr>
<tr class="separator:ab27ca5627cbe91c355b16a323e6ef1ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d1842ad958eba8bc7ec9de0c46e3d7d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector3.html">Vector3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a6d1842ad958eba8bc7ec9de0c46e3d7d">operator*</a> (const float t, const <a class="el" href="class_vector3.html">Vector3</a> &amp;v1)</td></tr>
<tr class="memdesc:a6d1842ad958eba8bc7ec9de0c46e3d7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get t*v1.  <a href="#a6d1842ad958eba8bc7ec9de0c46e3d7d">More...</a><br/></td></tr>
<tr class="separator:a6d1842ad958eba8bc7ec9de0c46e3d7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47e8c3cc81129fb021e68339f3be06f4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector3.html">Vector3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a47e8c3cc81129fb021e68339f3be06f4">operator/</a> (const <a class="el" href="class_vector3.html">Vector3</a> &amp;v1, const float t)</td></tr>
<tr class="memdesc:a47e8c3cc81129fb021e68339f3be06f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get v1/t.  <a href="#a47e8c3cc81129fb021e68339f3be06f4">More...</a><br/></td></tr>
<tr class="separator:a47e8c3cc81129fb021e68339f3be06f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41f163265cb2926e79b8e26fa8fc06d8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a41f163265cb2926e79b8e26fa8fc06d8">operator==</a> (const <a class="el" href="class_vector3.html">Vector3</a> &amp;v1, const <a class="el" href="class_vector3.html">Vector3</a> &amp;v2)</td></tr>
<tr class="memdesc:a41f163265cb2926e79b8e26fa8fc06d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reture v1==v2.  <a href="#a41f163265cb2926e79b8e26fa8fc06d8">More...</a><br/></td></tr>
<tr class="separator:a41f163265cb2926e79b8e26fa8fc06d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab271ae54719908906f1acf4d60668547"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector3.html">Vector3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#ab271ae54719908906f1acf4d60668547">Cross</a> (const <a class="el" href="class_vector3.html">Vector3</a> &amp;v1, const <a class="el" href="class_vector3.html">Vector3</a> &amp;v2)</td></tr>
<tr class="memdesc:ab271ae54719908906f1acf4d60668547"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get cross product.  <a href="#ab271ae54719908906f1acf4d60668547">More...</a><br/></td></tr>
<tr class="separator:ab271ae54719908906f1acf4d60668547"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dbfb016a8ed359b7d287c964b26f274"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vector3.html#a7dbfb016a8ed359b7d287c964b26f274">Dot</a> (const <a class="el" href="class_vector3.html">Vector3</a> &amp;v1, const <a class="el" href="class_vector3.html">Vector3</a> &amp;v2)</td></tr>
<tr class="memdesc:a7dbfb016a8ed359b7d287c964b26f274"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get dot product.  <a href="#a7dbfb016a8ed359b7d287c964b26f274">More...</a><br/></td></tr>
<tr class="separator:a7dbfb016a8ed359b7d287c964b26f274"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a> class. </p>
<p>It is class of vector in 3D coordinate. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a0f49191f7e001e7f7ae1cb49522118b4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Vector3::Vector3 </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A constructor. </p>

</div>
</div>
<a class="anchor" id="a61caf3c2269cee584e55c84a6ec0a475"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Vector3::Vector3 </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>x coordinate value. </td></tr>
    <tr><td class="paramname">b</td><td>y coordinate value. </td></tr>
    <tr><td class="paramname">c</td><td>z coordinate value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af14c1570f3ac79f1ab8f09cc3200b51b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double Vector3::Lenght </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the lenght of a vector. </p>
<dl class="section return"><dt>Returns</dt><dd>return the lenght of the <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a9c94cc16049543fc8edaba52c2b266b7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Vector3::Normalize </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Normalize a vector. </p>

</div>
</div>
<a class="anchor" id="a72a36c71164f1532d24ec49c3d7056fc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector3.html">Vector3</a> Vector3::operator- </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get -v;. </p>
<dl class="section return"><dt>Returns</dt><dd>return a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a> -v. </dd></dl>

</div>
</div>
<a class="anchor" id="a5160793db4ed4c3ba3becc89f5af3bee"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Vector3::Set </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>x coordinate value. </td></tr>
    <tr><td class="paramname">b</td><td>y coordinate value. </td></tr>
    <tr><td class="paramname">c</td><td>z coordinate value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="ab271ae54719908906f1acf4d60668547"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector3.html">Vector3</a> Cross </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get cross product. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">v1</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
    <tr><td class="paramname">v2</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a> of the cross product of v1 and v2. </dd></dl>

</div>
</div>
<a class="anchor" id="a7dbfb016a8ed359b7d287c964b26f274"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float Dot </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get dot product. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">v1</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
    <tr><td class="paramname">v2</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return a float value of the dot product of v1 and v2. </dd></dl>

</div>
</div>
<a class="anchor" id="a8eb7b80968ff52ad83d1010fc717fd50"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector3.html">Vector3</a> operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get v1*v2. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">v1</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
    <tr><td class="paramname">v2</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a> v1*v2. </dd></dl>

</div>
</div>
<a class="anchor" id="ab27ca5627cbe91c355b16a323e6ef1ca"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector3.html">Vector3</a> operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get v1*t. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">v1</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
    <tr><td class="paramname">t</td><td>a float value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a> v1*t. </dd></dl>

</div>
</div>
<a class="anchor" id="a6d1842ad958eba8bc7ec9de0c46e3d7d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector3.html">Vector3</a> operator* </td>
          <td>(</td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get t*v1. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>a float value. </td></tr>
    <tr><td class="paramname">v1</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a> t*v1. </dd></dl>

</div>
</div>
<a class="anchor" id="ab7e44563aab6a2c1231aee03ca792b9a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector3.html">Vector3</a> operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get v1+v2. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">v1</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
    <tr><td class="paramname">v2</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a> v1+v2. </dd></dl>

</div>
</div>
<a class="anchor" id="af6a71d8f6c8d21c22d4025faa286d396"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector3.html">Vector3</a> operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get v1-v2. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">v1</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
    <tr><td class="paramname">v2</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a> v1-v2. </dd></dl>

</div>
</div>
<a class="anchor" id="a47e8c3cc81129fb021e68339f3be06f4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector3.html">Vector3</a> operator/ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float&#160;</td>
          <td class="paramname"><em>t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get v1/t. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">v1</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
    <tr><td class="paramname">t</td><td>a float value. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a> v1/t. </dd></dl>

</div>
</div>
<a class="anchor" id="a41f163265cb2926e79b8e26fa8fc06d8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_vector3.html">Vector3</a> &amp;&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reture v1==v2. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">v1</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
    <tr><td class="paramname">v2</td><td>a <a class="el" href="class_vector3.html" title="A Vector3 class. ">Vector3</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>return true if v1==v2, or return false. </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a60aa84ebc037dec9faba617f8ddb231d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Vector3::x</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>x coordinate value. </p>

</div>
</div>
<a class="anchor" id="ae4965693beffdb6069e0618222cae459"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Vector3::y</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>y coordinate value. </p>

</div>
</div>
<a class="anchor" id="aa5f4108b2839a110eeaec8606780eaff"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Vector3::z</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>z coordinate value. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="common_8h_source.html">common.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jul 9 2013 15:49:58 for 3D Cell by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1-20130512
</small></address>
</body>
</html>
